import React, { Component } from 'react'
import PubSub from 'pubsub-js'
export default class Son extends Component {
  render() {
    return (
      <div>
        son
        <button
          onClick={() => {
            PubSub.publish('richWomen', '孙女士: 13900000000.身价: 30个亿美元')
          }}
        >
          发布富婆话题
        </button>
        <button
          onClick={() => {
            PubSub.publish(
              'prettyWomen',
              '李小姐: 139111111111.身价: 10个亿美元'
            )
          }}
        >
          发布白富美话题
        </button>
      </div>
    )
  }
}
